package bist.believeinstep.logic;

import java.util.List;

import bist.believeinstep.domain.TourPrice;
import bist.believeinstep.impl.TourPriceTemplate;
import bist.believeinstep.util.Util;

public class TourPriceService {
	private TourPriceTemplate tourPriceTemplate;
	
	public TourPriceService(){
		tourPriceTemplate = (TourPriceTemplate)Util.getConnection("tourPriceTemplate");
	}
	public void create(TourPrice tourPrice){
		tourPriceTemplate.create(tourPrice);
	}
	public void update(TourPrice tourPrice){
		tourPriceTemplate.update(tourPrice);
	}
	public void delete(Integer id){
		tourPriceTemplate.delete(id);
	}
	public TourPrice getTourPrice(Integer id){
		return tourPriceTemplate.getTourPrice(id);
	}
	public List<TourPrice> listTourPrice(){
		return tourPriceTemplate.listTourPrice();
	}
}
